
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="/common/taglibs.jsp"%>

<c:out value="${current_location}" escapeXml="false" />

<c:set var="buttons">
<div align="right">
    <input type="button" class="button" onclick="location.href='<c:url value="editKeyword.do"/>'" value="<fmt:message key="button.add"/>"/>
</div>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>
  <table width="100%">
 		<tr class="tr_pagenumber">
            <td  align="right">
                <%@include file="/common/pageHeader.jsp"%>
            </td>
        </tr>
	</table>
<table cellspacing="1" class="tb_datalist" name="keywordList" id="keywordList">
    <thead>
        
        <tr class="tr_detail">
            
            <th>
                <fmt:message key="keywordForm.keywordContent" />
            </th>

            <th>
                <fmt:message key="keywordForm.infoRemark" />
            </th>          

            <th>
                <fmt:message key="keywordForm.keywordType" />
            </th>

            <th>
                <fmt:message key="keywordForm.replaceContent" />
            </th>

            <th>
                <fmt:message key="keywordForm.createdBy" />
            </th>

            <th>
                <fmt:message key="keywordForm.createdDate" />
            </th>            
            <th>
                <fmt:message key="keywordForm.enabledFlag" />
            </th>

            <th>
                <fmt:message key="button.operation"/>
            </th>
        </tr>
    </thead>

    <c:if test="${not empty objectList}">
        <tbody>
            <c:forEach var="object" items="${objectList}" varStatus="status">
                <c:choose>
                    <c:when test="${status.count mod 2 == 0}">
                        <c:set var="trClass" value="odd"/>
                    </c:when>
                    <c:otherwise>
                        <c:set var="trClass" value="even"/>
                    </c:otherwise>
                </c:choose>

                <tr class="${trClass}">
                    
                    <td align="center">
                        ${object.keywordContent}
                    </td>

                    <td>
                        ${object.infoRemark}
                    </td>

                   
                    <td align="center">
                        ${object.kerywordTypeName}
                    </td>

                    <td align="center">
                        ${object.replaceContent}
                    </td>

                    <td align="center">
                        ${object.createdBy}
                    </td>

                    <td align="center">
                        <fmt:formatDate value="${object.createdDate}" pattern="yyyy-MM-dd" />
                    </td>
                    
                    <td align="center">
                        ${object.enabledFlag}
                    </td>

                    <td>

                        <html:link href="###" onclick="javascript:goPage('editKeyword.do?keywordId=${object.keywordId}')">
                            <fmt:message key="button.edit" />
                        </html:link>
                        <html:link href="###" onclick="javascript:if (confirmDelete('keyword')) {goPage('deleteKeyword.do?keywordId=${object.keywordId}')}">
                            <fmt:message key="button.delete" />
                        </html:link>

                    </td>

                </tr>
            </c:forEach>
        </tbody>
    </c:if>


</table>
  <table width="100%">
 		<tr class="tr_pagenumber">
            <td  align="right">
                <%@include file="/common/pageFooter.jsp"%>
            </td>
        </tr>
	</table>
<script type="text/javascript">
    highlightTableRows("keywordList");
</script>